package com.runing.controller;


import com.runing.config.ResponseWrapper;
import com.runing.entity.RResult;
import com.runing.service.impl.RResultServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lel
 * @since 2021-03-11
 */
@RestController
@RequestMapping("/rResult")
@Api(tags = "分数设置")
public class RResultController {

    @Autowired
    RResultServiceImpl rResultService;

    @ApiOperation("修改分数设置")
    @PutMapping("/updateResult")
    public ResponseWrapper updateResult(@RequestBody List<RResult> results){
        ResponseWrapper wrapper = rResultService.updateResult(results);
        return wrapper;
    }


}

